package com.castle.fortress.admin.oa.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import java.util.Date;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
 * 考勤时间设置 实体类
 *
 * @author whc
 * @since 2022-11-03
 */
@Data
@ApiModel(value = "attendanceSettingDate对象", description = "考勤时间设置")
public class AttendanceSettingDateDto implements Serializable {
	private static final long serialVersionUID = 1L;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "ID")
	@JsonProperty("id")
	private Long id;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "规则")
	@JsonProperty("settId")
	private Long settId;
	@ApiModelProperty(value = "工作日")
	@JsonProperty("workDay")
	private String workDay;
	@ApiModelProperty(value = "考勤开始时间")
	@JsonProperty("startTime")
	private String startTime;
	@ApiModelProperty(value = "考勤结束时间")
	@JsonProperty("endTime")
	private String endTime;
	@ApiModelProperty(value = "上班打卡开始时间")
	@JsonProperty("amStartTime")
	private String amStartTime;
	@ApiModelProperty(value = "上班打卡结束时间")
	@JsonProperty("amEndTime")
	private String amEndTime;
	@ApiModelProperty(value = "下班打卡开始时间")
	@JsonProperty("pmStartTime")
	private String pmStartTime;
	@ApiModelProperty(value = "下班打卡结束时间")
	@JsonProperty("pmEndTime")
	private String pmEndTime;
	@ApiModelProperty(value = "迟到时间")
	@JsonProperty("lateTime")
	private String lateTime;
	@ApiModelProperty(value = "早退时间")
	@JsonProperty("leaveTime")
	private String leaveTime;
	@ApiModelProperty(value = "是否开启休息时间")
	@JsonProperty("isRest")
	private Integer isRest;
	@ApiModelProperty(value = "休息结束时间")
	@JsonProperty("restEnd")
	private String restEnd;
	@ApiModelProperty(value = "状态")
	@JsonProperty("status")
	private Integer status;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "创建人")
	@JsonProperty("createUser")
	private Long createUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "创建时间")
	@JsonProperty("createTime")
	private Date createTime;
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "更新人")
	@JsonProperty("updateUser")
	private Long updateUser;
	@DateTimeFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
		pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@ApiModelProperty(value = "更新时间")
	@JsonProperty("updateTime")
	private Date updateTime;
	@ApiModelProperty(value = "是否删除")
	@JsonProperty("isDeleted")
	private Integer isDeleted;
	@ApiModelProperty(value = "休息开始时间")
	@JsonProperty("restStart")
	private String restStart;
	@ApiModelProperty(value = "创建者姓名")
	@JsonProperty("createUserName")
	private String createUserName;

}
